/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package comandaXM.utils.format;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

/**
 *
 * @author xmarti
 */
public class FormatJSplitPane {
    private List<Integer> cols = new ArrayList<Integer>();
    private int resizeWeight; 
    private int formWidth;
    private int formHeight;

    public FormatJSplitPane(){        
    }
    public FormatJSplitPane(List cols, int resizeWeight){
        this.cols=cols; 
        this.resizeWeight= resizeWeight; 
    }
    public FormatJSplitPane(List cols, int formWidth, int formHeight) {
        this.cols=cols;         
        this.formWidth = formWidth;
        this.formHeight = formHeight;
    }
    public FormatJSplitPane(List cols,int resizeWeight, int formWidth, int formHeight) {
        this.cols=cols; 
        this.resizeWeight = resizeWeight;
        this.formWidth = formWidth;
        this.formHeight = formHeight;
    }
    
    public List<Integer> getCols() {
        return cols;
    }

    public void setCols(List<Integer> cols) {
        this.cols = cols;
    }
    public void setCol (int value){        
        this.cols.add(value);
    }
    public void resetCols(){
        this.cols=new ArrayList<Integer>();
    }
    public int getCol(int index){
        return this.cols.get(index); 
    }
    public int getResizeWeight() {
        return resizeWeight;
    }
    public void setResizeWeight(int resizeWeight) {
       if( resizeWeight<400) this.resizeWeight = resizeWeight;
       else this.resizeWeight =400;
    }

    public int getFormWidth() {
        return formWidth;
    }

    public void setFormWidth(int formWidth) {
        this.formWidth = formWidth;
    }

    public int getFormHeight() {
        return formHeight;
    }

    public void setFormHeight(int formHeight) {
        this.formHeight = formHeight;
    }
      
    
    
}
